<#include "../../../include/variable.htm">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="${Application["jsPath"]}/jquery/jquery.form.js" ></script>
<script src="${Application["jsPath"]}/microlife/microlife-common.js" ></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
	
	$(document).ready(function() {
		// $("#formID").validationEngine('attach');插件冲突 取其中一个
		$('#myForm').ajaxForm(function(data) {
			if (data.status) {
				alert(data.message);
				window.close();
				window.opener.location.reload();
			} else {
				alert(data.message);
			}
		});
	});
	function ajaxForm1() {
		alert('ssss');
	}
</script>
</head>

<body>
	<div align="center">
		<form id="myForm" action="addProductClassInfo.htm" method="post">
			<input type="hidden" value="${id}" name='parentid'>
			<table width="500px" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#a8c7ce">
				<tr>
					<td colspan=2 class="table-title" bgcolor="#55555">
						<table>
							<tr>
								<th width="14" height="19" valign="bottom"><div
										align="center">
										<img src="${Application["stylePath"]}/images/table/tb.gif" width="14" height="14" />
									</div>
								</th>
								<th style="color: #ddd">添加商品类别</th>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" class="attr-name" width="20%">
						名&nbsp;&nbsp;&nbsp;称：</td>
					<td bgcolor="#FFFFFF"><input size=50 name="classifyname"
						class="noborder" type="text"></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" class="attr-name" width="20%">英文标示：</td>
					<td bgcolor="#FFFFFF"><input size=50 name="enname"
						class="noborder" type="text"></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" class="attr-name">关键字：</td>
					<td bgcolor="#FFFFFF"><textarea rows="10" cols="45"
							name="keyworlds" class="noborder"></textarea></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" class="attr-name">描&nbsp;&nbsp;&nbsp;述：</td>
					<td bgcolor="#FFFFFF"><textarea rows="10" cols="45"
							name="describes" class="noborder"></textarea></td>
				</tr>
			</table>
			<button class="input" type="submit" value="Validate & Send the form!">提交</button>
			<button class="input" type="button" onclick='window.close()'>取消</button>
		</form>
	</div>
	<div></div>
</body>
</html>